import request  from '@/request';

/**上传文件*/
export const uploadFile = (data: FormData) => request({
    url: '/api/upload',
    method: 'post',
    uplodFile : true,
    data
}) 

/**上传图片*/
export const uploadImg = (data: FormData) => request({
    url: '/api/upload/uploadImg',
    method: 'post',
    uplodFile : true,
    data
}) 

/**富文本上传图片*/
export const uploadEditorImg = (data: FormData) => request({
    url: '/api/upload/editor',
    method: 'post',
    uplodFile : true,
    data
}) 